var thisuser;
var start=0;
var count=12;
var serachkey='';
var currentpage=1;
var UserProxy = Objs("model.UserProxy",
	Proxy,
{
	initialize: function( name,lists)
	{ 
		UserProxy.$super.initialize.call( this, name,lists);
		thisuser=this;
		//alert("S");
	},	
	load:function()
	{  
	
		var pagelimit=new Object();
		pagelimit.start=start;
		pagelimit.count=count;
		//$("#progress").show();
		
		pagelimit.searchkey=$("#searchuser").val();
		$.ajax({
				type: "POST",
				url:"../services/UserService.php?action=getusers",
				data:pagelimit,
				success: function(data,status) {
				var userdata= eval('(' + data + ')');
				thisuser.sendNotification( NotificationNames.USERDATA, userdata );	
				//$("#progress").hide();
				},
				error:function(error,response){
				}
			});
		
	}
});
 